package router

import (
	"fresh-food/service"
	"github.com/gin-gonic/gin"
)

func LoadRouter(r *gin.Engine) {
	user := r.Group("/user")
	{
		user.POST("/sendSms", service.SendSms)
		user.POST("/login", service.UserLogin)
	}
	order := r.Group("/order")
	{
		order.POST("/add", service.OrderAdd)
		order.GET("/listAll", service.OrderList)
	}
}
